import request from "@/utils/request";

/**
 * 游戏配置参数
 */
export default {

  getAttrInfo(params) {
    return request({
      url: '/gmmallproduct/attr/list',
      method: 'get',
      params: params
    })
  },

  getAttrInfoById(id) {
    return request({
      url: '/gmmallproduct/attr/info/' + id,
      method: 'get',
    })
  },

  updateAttrInfo(attr) {
    return request({
      url: '/gmmallproduct/attr/update',
      method: 'put',
      data: attr
    })
  },

  deleteAttrInfoById(id) {
    return request({
      url: '/gmmallproduct/attr/delete/' + id,
      method: 'delete',
    })
  },

  addAttrInfo(attr) {
    return request({
      url: '/gmmallproduct/attr/save',
      method: 'post',
      data: attr
    })
  },



}
